package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-04
 * Time: 14:31
 */
public class Test {
    public static void main(String[] args) {
        String str1 = "Hello";
        String str2 = " world";
        StringBuilder str3 = new StringBuilder(str1);
        str3.append(str2);
        String str6 = str3.toString();
        String str4 = "Hello world";
        String str5 = "Hello world";
        System.out.println(str6 == str4);
        System.out.println(str4 == str5);
    }
}
